Skip to content

Conversation

@eddeee888
Copy link
Collaborator

@eddeee888 eddeee888 commented Nov 7, 2025

This is the feature branch for #10479

Checklist

typescript-operations

TODO/Cleanups

client-preset

Verify fixes

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2025

🦋 Changeset detected

Latest commit: b6c4417

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 11 packages
Name Type
@graphql-codegen/typescript-operations Major
@graphql-codegen/visitor-plugin-common Major
@graphql-codegen/client-preset Major
@graphql-codegen/typescript Major
@graphql-codegen/typescript-resolvers Major
@graphql-codegen/typescript-document-nodes Patch
@graphql-codegen/gql-tag-operations Patch
@graphql-codegen/typed-document-node Patch
@graphql-codegen/introspection Patch
@graphql-codegen/graphql-modules-preset Patch
@graphql-codegen/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-codegen/cli 6.1.2-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/introspection 5.0.1-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/visitor-plugin-common 7.0.0-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-document-nodes 5.0.8-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/gql-tag-operations 5.1.3-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-operations 6.0.0-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript-resolvers 6.0.0-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/typed-document-node 6.1.6-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/typescript 6.0.0-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/client-preset 6.0.0-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎
@graphql-codegen/graphql-modules-preset 5.1.3-alpha-20260122145516-b6c44170e2020be3709e5730aec1a110d09330bd npm ↗︎ unpkg ↗︎

@eddeee888 eddeee888 force-pushed the master-next branch 2 times, most recently from 48ef01e to c2be6b3 Compare January 6, 2026 13:16
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

💻 Website Preview

The latest changes are available as preview in: https://pr-10496.graphql-code-generator.pages.dev

eddeee888 and others added 17 commits January 20, 2026 21:08
…10552)

* Fix typename optionality and existence at Result root and types

* Update tests

* Update tests

* Stop allowing skipTypename into Client Preset and typescript-operations, and update tests

* Remove dependency on typescript plugin

* Add changeset
… on `typescript` plugin (`preResolveTypes: false`) (#10556)

* Remove legacy selection set proccessor that depends on typescript plugin

* Remove obsolete tests

* Improve tests to be explicit
* Refactor utility function to match practice

* Fix config option inheritance

- addTypename/skipTypename: is only a types-visitor concern. This is moved to types-visitor from base-visitor
- nonOptionalTypename: is a documents-visitor and types-visitor concern. Moved from base-visitor there
- extractAllFieldsToTypes: is a documents-visitor concern. Moved from base-visitor there
- enumPrefix and enumSuffix: need to be in base-visitor as all 3 types of visitors need this to correctly sync the enum type names. This is moved to base visitor
- ignoreEnumValuesFromSchema: is a documents-visitor and types-visitor concern. Moved from base-visitor there.
- globalNamespace: is a documents-visitor concern. Moved from base-visitor there

Other changes:
- documents-visitor no longer extends types-visitor _option types_ as they have two distinct usages now. The types now extend base-visitor types. This is now consistent with documents-visitor extending base-visitor
- Classes now handle config parsing and types at the same level e.g. if typescript-operations plugin parses configOne, then the types for configOne must be in that class, rather than in base-documents-visitor

* Remove references and tests related to skipTypename in operations plugin

* Add changeset
* Fix missing dep

* chore(dependencies): updated changesets for modified dependencies

* Fix dev-tests

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Remove MakeOptional MakeMaybe MakeEmpty and Incremental utitlity types from typescript plugin because they were used for typescript-operations

* Fix unit tests

* Remove deprecated functions

* Add changeset
…lo-tooling), v2 (#10568)

* add extractAllFieldsToTypesCompact config option

* adding changeset

* fixing duplication bug

* duplication bug fix

---------

Co-authored-by: Igor Kusakov <igor@kusakov.com>
* Remove extraneous test setup

* Do not generate Exact utility type of not used

* Add default test case to check that Exact is used for Mutation and Subscription variables

* Update dev-tests

* Add changeset

* Remove extraneous config for Exact test
* Make default scalar unknown, instead of any

* Set up defaultScalarType tests

* Add changeset

* Revert unrelated null | undefined changes

* Fix test description

* Add a test case for custom scalar in dev-test
)

* Decouple TypeScriptOperationVariablesToObject from typescript plugin

* Add changeset

* Remove typescript plugin dep

* chore(dependencies): updated changesets for modified dependencies

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…types (#10573)

* Shuffle methods to group things together, cleanup

* Wire up _inputMaybeValue and organise config

* Wire up inputMaybeValue

* Add inputMaybeValue test

* Update tests

* Add changeset
…en types are `any` and `unknown` (#10574)

* Use printTypeScriptType to handle printing typescript types consistently, especially for any and unknown

* Update tests

* Add changeset

* Make printTypeScriptMaybeType scope smaller

* Update tests
…TypesFrom` (#10575)

* Fix importing issue when using importSchemaTypesFrom

* Add dev-tests for usage with typescript plugin

* Update unit test

* Add changeset
…perations (#10565)

* integration test

* cleanups

* cleanups2

* fixed a bug with external fragments

* cleanup

* keep generated files, refactored visitorwq

* cleanup

* changeset

* adding missing dependency

* delete temporary files

* cleanup

* cleanups

* Adding back the integration tests + fix them

* merged + fixes

* cleanup

* cleanup

* patching near-operation-file preset

* cleanup

* adding duplicates case to integration tests

* Fixing bug with duplicates generated when using extractAllFieldsToTypesCompact

* cleanup

* prevent running prettier on generated code

* cleanups

* cleanup

* adding unit tests

* update changeset

* cleanups

* try resolving graphql 16 error

* remove unused deps

* remove unused deps

* cleanups

* Revert and apply minimal yarn.lock changes

---------

Co-authored-by: ikusakov <ikusakov@gxnfgqk426.y.yelp>
Co-authored-by: Igor Kusakov <igor@kusakov.com>
Co-authored-by: Eddy Nguyen <github@eddeee888.me>
Co-authored-by: Eddy Nguyen <ch@eddeee888.me>
* Enable TS test

* Add missing test for globalNamespace

* Ensure dev-test-apollo-tooling is private
…ject`, `inputValue` and `defaultValue` (+ minor drive-by fixes) (#10579)

* Trim down avoidOptionals for client use case

* Add changeset

* Correctly ignore dev-test from changeset
…nals.variableValue` to better reflect the target (#10582)

* Rename avoidOptionals.object -> avoidOptionals.variableValue to better reflect the target. Add tests.

* Add default input use cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants